67326,
12 => 59183,
13 => 57485,
14 => 37163,
15 => 21431,
16 => 83164,
17 => 25461,
18 => 19638,
19 => 22778,
20 => 19837,
21 => 86574,
22 => 39563,
23 => 28547,
24 => 85653,
25 => 44825,
26 => 82349,
27 => 91754,
28 => 86448,
29 => 77519,
30 => 74968
);
if ($Captchas[$SecurityIndex] != $SecurityCode) {
$ErrorMsg = "Invalid Security Code";
}
}
if ($ErrorMsg == '') {
$MessageContent = "The following contact was entered on $SiteURL.
Email: $Email
Phone: $Phone
Message:
$Message";
require("class.phpmailer.php");
$mail = new PHPMailer();
// Replace this with the agent's SMTP information
$mail->Host = $SMTPInfo['Host'];
$mail->Port = $SMTPInfo['Port'];
$mail->Username = $SMTPInfo['UserName'];
$mail->Password = $SMTPInfo['Password'];
$mail->IsSMTP();
$mail->SMTPAuth = $SMTPInfo['Authentication'];
if($SMTPInfo['Security'] != "") {
$mail->SMTPSecurity = $SMTPInfo['Security'];
}
$mail->From = $SMTPInfo['Email'];
$mail->FromName = $ContactName;
$mail->Subject = "$SiteURL Contact - Page Not Found";
$mail->AddAddress($SMTPInfo['Email'], "$SiteURL Contact Form");
$mail->Body = $MessageContent;
$mail->IsHTML(0);
//$mail->SMTPDebug = 2;
if (!@$mail->Send()) {
$mail->IsSendmail(); // Sendmail - always required for 1&1
if (!@$mail->Send()) {
$ErrorMsg = "There has been a mail error: " . $mail->ErrorInfo;
}
}
}
}
srand((double)microtime()*1000000);
$SecurityIndex = rand(11,30);
$head = <<< EOS
EOS;
?>
|
|
|
|
Page Not Found
|
Sorry you couldn't find what you were looking for. You can head back home or fill out the contact form below.
\n";
if($ErrorMsg != "") {
echo "$ErrorMsg\n";
} else {
echo "Thank you for your message! Sombody will contact you shortly regarding your inquiry.\n";
}
echo " \n";
}
?>
|
|
|
|
|
|
|
|
0): ?>
|
0) include("footer_columns.php"); ?>
|
|
|
|